package com.dylan.magic.redis.config.redis;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;

/**
 * @author : ankang
 * @date : 2019/12/14 20:27
 * @Description :
 */
@ConfigurationProperties(prefix = "magic.redis")
public class MagicRedisProperties {
    private Duration defaultExpireTimeout = Duration.ofDays(91);

    public Duration getDefaultExpireTimeout() {
        return defaultExpireTimeout;
    }

    public void setDefaultExpireTimeout(Duration defaultExpireTimeout) {
        this.defaultExpireTimeout = defaultExpireTimeout;
    }
}
